package org.changwang.String;

/**
 * @ClassName SplitUse
 * @Description
 * @Author c.w
 * @Date 2025/6/18 17:36
 * @Version 1.0.0
 */
public class SplitUse {
	public static void main(String[] args) {
		//splitUse();
		nullStrSplit();
	}

	private static void splitUse() {
		String str = "1,2,3,4,5,6,7,8,9,10";
		String[] strs = str.split(",");
		for (String s : strs){
			System.out.println(s);
		}
	}

	private static void nullStrSplit() {
		String str = "";
		String[] strs = str.split(",");
		System.out.println(strs.length);
	}
}